Skip to content

feat: introduce automatic registration of --no-headers on list commands and cloud-provider list to use it#109

Open
Davidonium wants to merge 7 commits intomainfrom
feat/dhernando/global-no-headers
Open

feat: introduce automatic registration of --no-headers on list commands and cloud-provider list to use it#109
Davidonium wants to merge 7 commits intomainfrom
feat/dhernando/global-no-headers

Conversation

@Davidonium
Copy link
Copy Markdown
Collaborator

@Davidonium Davidonium commented Apr 8, 2026

After this the rest of the list commands will be migrated to use OutputTable.

For now only the cloud-provider list command has been modified. In further PRs, the rest of the list commands will be migrated to use OutputTable.

@Davidonium Davidonium requested a review from a team April 8, 2026 09:38
JustAwesomeGuy
JustAwesomeGuy previously approved these changes Apr 8, 2026
Copy link
Copy Markdown

@JustAwesomeGuy JustAwesomeGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a small comment, otherwise lgtm!

r.Render()
return nil
}
return lc.PrintText(cmd, cmd.OutOrStdout(), resp)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to return error here when both OutputTable and PrintText are not set?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does, the code should panic since it's a development mistake. Adding it!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Copy Markdown

@JustAwesomeGuy JustAwesomeGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants